/*
 * Copyright 2010 David de Mingo
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package org.shalma.client.ui;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * The IMG element embeds an image in the current document at the location of
 * the element's definition. The IMG element has no content; it is usually
 * replaced inline by the image designated by the src attribute, the exception
 * being for left or right-aligned images that are "floated" out of line.
 * <p>
 * The src attribute specifies the location of the image resource. Examples of
 * widely recognized image formats include GIF, JPEG, and PNG.
 * 
 * <h3>Width and height</h3>
 * 
 * When specified, the width and height attributes tell user agents to override
 * the natural image or object size in favor of these values.
 * <p>
 * When the object is an image, it is scaled. User agents should do their best
 * to scale an object or image to match the width and height specified by the
 * author. Note that lengths expressed as percentages are based on the
 * horizontal or vertical space currently available, not on the natural size of
 * the image, object, or applet.
 * <p>
 * The height and width attributes give user agents an idea of the size of an
 * image or object so that they may reserve space for it and continue rendering
 * the document while waiting for the image data.
 * 
 */
public interface ImageModel extends IsSerializable {

	String getSrc();

	void setSrc(String src);

	int getWidth();

	void setWidth(int width);

	int getHeight();

	void setHeight(int height);
}